
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <link rel="canonical" href="https://blog.csdn.net/amuchena/article/details/89060798"/>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit"/>
    <meta name="force-rendering" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="report" content='{"pid": "blog", "spm":"1001.2101"}'>
    <meta name="referrer" content="always">
    <meta http-equiv="Cache-Control" content="no-siteapp" /><link rel="alternate" media="handheld" href="#" />
    <meta name="shenma-site-verification" content="5a59773ab8077d4a62bf469ab966a63b_1497598848">
    <meta name="applicable-device" content="pc">
    <link  href="https://g.csdnimg.cn/static/logo/favicon32.ico"  rel="shortcut icon" type="image/x-icon" />
    <title>python求和函数sum()详解_amuchena的博客-CSDN博客_python sum</title>
    <script>
      (function(){ 
        var el = document.createElement("script"); 
        el.src = "https://s3a.pstatp.com/toutiao/push.js?1abfa13dfe74d72d41d83c86d240de427e7cac50c51ead53b2e79d40c7952a23ed7716d05b4a0f683a653eab3e214672511de2457e74e99286eb2c33f4428830"; 
        el.id = "ttzz"; 
        var s = document.getElementsByTagName("script")[0]; 
        s.parentNode.insertBefore(el, s);
      })(window)
    </script>
        <meta name="keywords" content="python sum">
        <meta name="csdn-baidu-search"  content='{"autorun":true,"install":true,"keyword":"python sum"}'>
    <meta name="description" content="python求和函数sum()详解今天在学习的过程中，误用sum()函数，我又去查了查python sum()函数才恍然大悟。我本来想算几个Int值相加的和，本以为很简单的事情，结果却很悲伤，例：&amp;gt;&amp;gt;&amp;gt;sum = sum(1,2,3)         #结果很明显出现问题报错TypeError: sum expected at most 2 arguments, got ...">
    <script src='//g.csdnimg.cn/tingyun/1.8.3/blog.js' type='text/javascript'></script>
        <link rel="stylesheet" type="text/css" href="https://csdnimg.cn/release/blogv2/dist/pc/css/detail_enter-abc53f1aad.min.css">
    <script type="application/ld+json">{"@context":"https://ziyuan.baidu.com/contexts/cambrian.jsonld","@id":"https://blog.csdn.net/amuchena/article/details/89060798","appid":"1638831770136827","pubDate":"2019-04-06T21:32:44","title":"python求和函数sum()详解_amuchena的博客-CSDN博客_python sum","upDate":"2019-04-06T21:32:44"}</script>
        <link rel="stylesheet" type="text/css" href="https://csdnimg.cn/release/blogv2/dist/pc/themesSkin/skin3-template/skin3-template-45808e735f.min.css">
    <script src="https://csdnimg.cn/public/common/libs/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var isCorporate = false;//注释删除enterprise
        var username =  "amuchena";
        var skinImg = "white";
        var blog_address = "https://blog.csdn.net/amuchena";
        var currentUserName = "";
        var isOwner = false;
        var loginUrl = "http://passport.csdn.net/account/login?from=https://blog.csdn.net/amuchena/article/details/89060798";
        var blogUrl = "https://blog.csdn.net/";
        var avatar = "https://profile.csdnimg.cn/C/A/D/3_amuchena";
        var articleTitle = "python求和函数sum()详解";
        var articleDesc = "python求和函数sum()详解今天在学习的过程中，误用sum()函数，我又去查了查python sum()函数才恍然大悟。我本来想算几个Int值相加的和，本以为很简单的事情，结果却很悲伤，例：&amp;gt;&amp;gt;&amp;gt;sum = sum(1,2,3)         #结果很明显出现问题报错TypeError: sum expected at most 2 arguments, got ...";
        var articleTitles = "python求和函数sum()详解_amuchena的博客-CSDN博客_python sum";
        var nickName = "amuchena";
        var articleDetailUrl = "https://blog.csdn.net/amuchena/article/details/89060798";
        if(window.location.host.split('.').length == 3) {
            blog_address = blogUrl + username;
        }
        var skinStatus = "White";
        var blogStaticHost = "https://csdnimg.cn/release/blogv2/"
    </script>
    <script src="https://g.csdnimg.cn/??fixed-sidebar/1.1.6/fixed-sidebar.js" type="text/javascript"></script>
    <script src='//g.csdnimg.cn/common/csdn-report/report.js' type='text/javascript'></script>
    <link rel="stylesheet" type="text/css" href="https://csdnimg.cn/public/sandalstrap/1.4/css/sandalstrap.min.css">
    <style>
        .MathJax, .MathJax_Message, .MathJax_Preview{
            display: none
        }
    </style>
    <script src="https://dup.baidustatic.com/js/ds.js"></script>
</head>
<body class="nodata " style="">
        <script>
            var toolbarSearchExt = {"landingWord":["python sum"],"queryWord":"python","tag":["python","sum()函数","python求和"],"title":"python求和函数sum()详解"};
        </script>
    <script src="https://g.csdnimg.cn/common/csdn-toolbar/csdn-toolbar.js" type="text/javascript"></script>
    <script>
    (function(){
        var bp = document.createElement('script');
        var curProtocol = window.location.protocol.split(':')[0];
        if (curProtocol === 'https') {
            bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
        }
        else {
            bp.src = 'http://push.zhanzhang.baidu.com/push.js';
        }
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(bp, s);
    })();
    </script>
<link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/pc/css/blog_code-01256533b5.min.css">
<link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/chart-3456820cac.css" />
<div class="main_father clearfix d-flex justify-content-center" style="height:100%;"> 
    <div class="container clearfix" id="mainBox">
        <main>
<script type="text/javascript">
    var blogSensitiveWords = "";
    function getQueryString(name) {   
      var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象  
      var r = window.location.search.substr(1).match(reg);  //匹配目标参数
      if( r != null ) return decodeURIComponent( r[2] ); return '';   
    }
    function stripscript(s){ 
      var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~！@#￥……&*（）——|{}【】‘；：”“'。，、？%]") 
      var rs = ""; 
      for (var i = 0; i < s.length; i++) { 
        rs = rs+s.substr(i, 1).replace(pattern, ''); 
      } 
      return rs; 
    }
    var blogHotWords = stripscript(getQueryString('utm_term')).length > 1 ? stripscript(getQueryString('utm_term')) : ''
</script>
<div class="blog-content-box">
    <div class="article-header-box">
        <div class="article-header">
            <div class="article-title-box">
                <h1 class="title-article" id="articleContentId">python求和函数sum()详解</h1>
            </div>
            <div class="article-info-box">
                <div class="article-bar-top">
                    <img class="article-type-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/original.png" alt="">
                    <div class="bar-content">
                    <a class="follow-nickName " href="https://blog.csdn.net/amuchena" target="_blank" rel="noopener">amuchena</a>
                    <span class="time">2019-04-06 21:32:44</span>
                    <img class="article-read-img article-heard-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/articleReadEyes.png" alt="">
                    <span class="read-count">44950</span>
                    <a id="blog_detail_zk_collection" class="un-collection" data-report-click='{"mod":"popu_823","spm":"1001.2101.3001.4232","ab":"new"}'>
                        <img class="article-collect-img article-heard-img un-collect-status isdefault" style="display:inline-block" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarCollect.png" alt="">
                        <img class="article-collect-img article-heard-img collect-status isactive" style="display:none" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarCollectionActive.png" alt="">
                        <span class="name">收藏</span>
                        <span class="get-collection">
                            85
                        </span>
                    </a>
                    </div>
                </div>
                <div class="blog-tags-box">
                    <div class="tags-box artic-tag-box">
                            <span class="label">分类专栏：</span>
                                <a class="tag-link" href="https://blog.csdn.net/amuchena/category_8833231.html" target="_blank" rel="noopener">python</a>
                            <span class="label">文章标签：</span>
                                <a data-report-click='{"mod":"popu_626","spm":"1001.2101.3001.4223","strategy":"python","ab":"new"}' class="tag-link" href="https://www.csdn.net/tags/MtjaQg4sNDk0LWJsb2cO0O0O.html" target="_blank" rel="noopener">python</a>
                                <a data-report-click='{"mod":"popu_626","spm":"1001.2101.3001.4223","strategy":"sum()函数","ab":"new"}' class="tag-link" href="https://so.csdn.net/so/search/s.do?q=sum()函数&amp;t=blog&amp;o=vip&amp;s=&amp;l=&amp;f=&amp;viparticle=" target="_blank" rel="noopener">sum()函数</a>
                                <a data-report-click='{"mod":"popu_626","spm":"1001.2101.3001.4223","strategy":"python求和","ab":"new"}' class="tag-link" href="https://www.csdn.net/tags/MtjakgysMjg3Ny1ibG9n.html" target="_blank" rel="noopener">python求和</a>
                    </div>
                </div>
                <div class="slide-content-box">
                    <div class="article-copyright">
                        <div class="creativecommons">
                            版权声明：本文为博主原创文章，遵循<a href="http://creativecommons.org/licenses/by-sa/4.0/" target="_blank" rel="noopener"> CC 4.0 BY-SA </a>版权协议，转载请附上原文出处链接和本声明。
                        </div>
                        <div class="article-source-link">
                            本文链接：<a href="https://blog.csdn.net/amuchena/article/details/89060798" target="_blank">https://blog.csdn.net/amuchena/article/details/89060798</a>
                        </div>
                    </div>
                </div>
                <div class="operating">
                    <a class="href-article-edit slide-toggle">版权</a>
                </div>
            </div>
        </div>
    </div>
    <article class="baidu_pl">
        <div id="article_content" class="article_content clearfix">
        <link rel="stylesheet" href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/ck_htmledit_views-b5506197d8.css">
                <div id="content_views" class="markdown_views prism-atom-one-dark">
                    <svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
                        <path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path>
                    </svg>
                    <h1><a id="pythonsum_0"></a>python求和函数<mark>sum</mark>()详解</h1> 
<h3><a id="sumpython_sum_2"></a>今天在学习的过程中&#xff0c;误用sum()函数&#xff0c;我又去查了查python <mark>sum</mark>()函数才恍然大悟。</h3> 
<p>我本来想算几个Int值相加的和&#xff0c;本以为很简单的事情&#xff0c;结果却很悲伤&#xff0c;例&#xff1a;</p> 
<pre><code>&gt;&gt;&gt;sum &#61; sum(1,2,3)         #结果很明显出现问题报错
TypeError: sum expected at most 2 arguments, got 3
</code></pre> 
<p>傻乎乎的我以为只能算前两个数的和等于3&#xff0c;就又试了一下</p> 
<pre><code>&gt;&gt;&gt;sum &#61; sum(1,2)           #结果还是报错
TypeError: &#39;int&#39; object is not iterable
</code></pre> 
<p>其实&#xff0c;我们所了解sum()函数语法是这样的<br /> <mark>sum(iterable[, start])</mark></p> 
<p>其中</p> 
<ul><li> <p><strong>iterable – 可迭代对象&#xff0c;如&#xff1a;列表(list)、元组(tuple)、集合(set)、字典(dictionary)。</strong></p> </li><li> <p><strong>start – 指定相加的参数&#xff0c;如果没有设置这个值&#xff0c;默认为0。</strong></p> </li></ul> 
<blockquote> 
 <p>也就是说sum()最后求得的值 &#61; 可迭代对象里面的数加起来的总和(字典:key值相加) &#43; start的值(如果没写start的值&#xff0c;则默认为0) 所以&#xff0c;我所求的几个int值的和可以写成这样</p> 
</blockquote> 
<pre><code class="prism language-python"><span class="token operator">&gt;&gt;</span><span class="token operator">&gt;</span><span class="token builtin">sum</span> <span class="token operator">&#61;</span> <span class="token builtin">sum</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">]</span><span class="token punctuation">)</span>             <span class="token comment"># in list</span>
<span class="token number">6</span>
</code></pre> 
<p>如果我们加上start的话&#xff0c;应该是这样的</p> 
<pre><code class="prism language-python"><span class="token operator">&gt;&gt;</span><span class="token operator">&gt;</span> <span class="token builtin">sum</span> <span class="token operator">&#61;</span> <span class="token builtin">sum</span><span class="token punctuation">(</span><span class="token punctuation">[</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">]</span><span class="token punctuation">,</span><span class="token number">5</span><span class="token punctuation">)</span>          <span class="token comment">#in list &#43;start</span>
<span class="token number">11</span>
<span class="token operator">&gt;&gt;</span><span class="token operator">&gt;</span> <span class="token builtin">sum</span> <span class="token operator">&#61;</span> <span class="token builtin">sum</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">)</span><span class="token punctuation">)</span>            <span class="token comment">#in tuple</span>
<span class="token number">6</span>
<span class="token operator">&gt;&gt;</span><span class="token operator">&gt;</span> <span class="token builtin">sum</span> <span class="token operator">&#61;</span> <span class="token builtin">sum</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">}</span><span class="token punctuation">)</span>            <span class="token comment">#in set</span>
<span class="token number">6</span>
<span class="token operator">&gt;&gt;</span><span class="token operator">&gt;</span> <span class="token builtin">sum</span> <span class="token operator">&#61;</span> <span class="token builtin">sum</span><span class="token punctuation">(</span><span class="token punctuation">{<!-- --></span><span class="token number">1</span><span class="token punctuation">:</span><span class="token number">5</span><span class="token punctuation">,</span><span class="token number">2</span><span class="token punctuation">:</span><span class="token number">6</span><span class="token punctuation">,</span><span class="token number">3</span><span class="token punctuation">:</span><span class="token number">7</span><span class="token punctuation">}</span><span class="token punctuation">)</span>      <span class="token comment">#in dictionary key</span>
<span class="token number">6</span>
<span class="token operator">&gt;&gt;</span><span class="token operator">&gt;</span> <span class="token builtin">sum</span> <span class="token operator">&#61;</span> <span class="token builtin">sum</span><span class="token punctuation">(</span><span class="token builtin">range</span><span class="token punctuation">(</span><span class="token number">1</span><span class="token punctuation">,</span><span class="token number">4</span><span class="token punctuation">)</span><span class="token punctuation">)</span>         <span class="token comment">#in range()</span>
<span class="token number">6</span>      
</code></pre> 
<p>学习这些过后&#xff0c;我们就可以正确的运用sum()函数了。</p> 
<p><em>别指望着看一遍就能记住和整掌握什么 – 请看第二遍&#xff0c;第三遍。</em></p>
                </div>
                <link href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/editerView/markdown_views-d7a94ec6ab.css" rel="stylesheet">
                <link href="https://csdnimg.cn/release/blogv2/dist/mdeditor/css/style-a0c38f4093.css" rel="stylesheet">
        </div>
    </article>
</div>
<script>
    // 敏感词替换
    // replaceArticleContentWords(blogSensitiveWords,'sensitiveWords')
    // 高亮词
    // replaceArticleContentWords(blogHotWords,'hotWords')
    // 公共方法
    function replaceArticleContentWords(words,type){
      if(words){   
        var getContentViews = document.getElementById("content_views");
        var getContentTitle = document.getElementById("articleContentId");
        var contentViewsInnerHTML = getContentViews.innerHTML;
        var contentTitleInnerHTML = getContentTitle.innerHTML;
        var keyWordsJsonArr = [];
        var keyWordsArr = words.split(',');
        function repeatTimes(str, num){
            return num > 1 ? str += repeatTimes(str, --num): str;
        }
        for(var i = 0; i < keyWordsArr.length; i++){
            var keyWordsJson = {} ;
            keyWordsJson.key = keyWordsArr[i];
            if(type == 'hotWords'){
              keyWordsJson.value = '<span class="hot-words-highlight">'+keyWordsArr[i]+'</span>'
            }else if(type == 'sensitiveWords'){
              keyWordsJson.value = repeatTimes("*",keyWordsArr[i].length);
            }else {
              keyWordsJson.value = keyWordsArr[i]
            }
            keyWordsJsonArr.push(keyWordsJson);
        }
        var reg;
        for(var i = 0; i < keyWordsJsonArr.length; i++){
            var item = keyWordsJsonArr[i]; 
            if(type == 'hotWords'){
              reg = new RegExp(item.key,"ig");
            }
            if(type == 'sensitiveWords'){
              reg = new RegExp(item.key+"(?!([^<]*>)|([^<]*<\/a>))","ig");  
            }
            contentViewsInnerHTML = contentViewsInnerHTML.replace(reg,item.value);
            contentTitleInnerHTML = contentTitleInnerHTML.replace(reg,item.value);
        }
        getContentViews.innerHTML=contentViewsInnerHTML;
        getContentTitle.innerHTML=contentTitleInnerHTML;
      }
    }
</script>
<div class="more-toolbox" id="toolBarBox">
    <span id="fixedBar"></span>
    <div class="left-toolbox">
        <ul class="toolbox-list">
            <li class="tool-item tool-item-size tool-active is-like" id="is-like"><a>
            <img style="display:none;" id="is-like-imgactive-animation-like" class="animation-dom active-animation" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarThumbUpactive.png" alt="">
            <img class="isactive" style="display:none" id="is-like-imgactive" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarThumbUpactive.png" alt="">
            <img class="isdefault" style="display:block" id="is-like-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarThumbUp.png" alt="">   
            <span class="name" id="is-like-span">点赞</span>
            <span id="spanCount" class="count">
                    44
            </span>
            </a></li>
            <li class="tool-item tool-item-size tool-active tool-item-comment">
                <a href="#commentBox">
                    <img class="isdefault" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarComment.png" alt="">
                    <img class="isactive" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarCommentactive.png" style="display:none;" alt="">
                    <span class="name">评论</span>
                    <span class="count">
                        14
                    </span>
                </a>
            </li>
            <li class="tool-item tool-item-size tool-active tool-QRcode" id="tool-share">
                <a href="javascript:;" data-report-click='{"mod":"1582594662_002","spm":"1001.2101.3001.4129","ab":"new"}'>
                    <img class="isdefault" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarShare.png" alt="">
                    <img class="isactive" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarShareactive.png" style="display:none;" alt="">
                    <span class="name">分享</span>
                </a>
                <div class="QRcode" id="tool-QRcode" style="left:-92%;">
                    <span id="QRcode-close">x</span>
                    <p class="title">
                    海报分享
                    </p>
                    <div id='shareCode'></div>
                    <p>
                    扫一扫，分享海报
                    </p>
                </div>
            </li>
            <li class="tool-item tool-item-size tool-active is-collection ">
                <a href="javascript:;" data-report-click='{"mod":"popu_824","spm":"1001.2101.3001.4130","ab":"new"}'>
                    <img style="display:none" id="is-collection-img-collection" class="animation-dom active-animation" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarCollectionActive.png" alt="">
                    <img class="isdefault" id="is-collection-img" style="display:block" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarCollect.png" alt="">
                    <img class="isactive" id="is-collection-imgactive" style="display:none" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarCollectionActive.png" alt="">
                    <span class="name" id="is-collection">收藏</span>
                    <span class="count get-collection" id="get-collection">
                        85
                    </span>
                </a>
            </li>
            <li class="tool-item tool-item-size tool-active tool-reward">
                <a  id="toolreward" data-report-click='{"mod":"popu_830","spm":"1001.2101.3001.4237","dest":"","ab":"new"}'>
                    <img class="isdefault" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarReward.png" alt="">
                    <img class="isactive" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarRewardactive.png" style="display:none;" alt="">
                    <span class="name">打赏</span>
                </a>
<div id="reward" class="reward-box">
	<p class="rewad-title">打赏<span class="reward-close"><svg t="1567152543821" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10924" xmlns:xlink="http://www.w3.org/1999/xlink" width="12" height="12"><defs><style type="text/css"></style></defs><path d="M512 438.378667L806.506667 143.893333a52.032 52.032 0 1 1 73.6 73.621334L585.621333 512l294.485334 294.485333a52.074667 52.074667 0 0 1-73.6 73.642667L512 585.621333 217.514667 880.128a52.053333 52.053333 0 1 1-73.621334-73.642667L438.378667 512 143.893333 217.514667a52.053333 52.053333 0 1 1 73.621334-73.621334L512 438.378667z" fill="" p-id="10925"></path></svg></span></p>
	<dl>
		<dd>
		<a href="https://blog.csdn.net/amuchena" data-report-click='{"mod":"popu_379","dest":"https://blog.csdn.net/amuchena","ab":"new"}'>
			<img src="https://profile.csdnimg.cn/C/A/D/3_amuchena" class="avatar_pic">
		</a>
		</dd>
		<dt>
			<p class="blog-name">amuchena</p>
			<p class="blog-discript">你的鼓励将是我创作的最大动力</p>
		</dt>
	</dl>
	<div class="change-bt-box">
		<span class="reward-bt reward-bt-coin">C币</span>
		<span class="reward-bt-space"></span>
		<span class="reward-bt reward-bt-money reward-bt-active">余额</span>
	</div>
	<div class="money-box">
			<span class="choose_money choosed" data-id="2">2C币</span>
			<span class="choose_money " data-id="4">4C币</span>
			<span class="choose_money " data-id="6">6C币</span>
			<span class="choose_money " data-id="10">10C币</span>
			<span class="choose_money " data-id="20">20C币</span>
			<span class="choose_money " data-id="50">50C币</span>
	</div>
	<div class="sure-box">
		<p class="is-have-money"><a class="reward-sure">确定</a></p>
	</div>
</div>
            </li>
            <li class="tool-item tool-item-size tool-active tool-more">
              <a class="article-report">
                <img class="isdefault" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarReport.png" alt="">
                <img class="isactive" src="https://csdnimg.cn/release/blogv2/dist/pc/img/tobarReportactive.png" style="display:none;" alt="">
                <span class="name">举报</span>
              </a>
            </li>
            <li class="tool-item">
                    <a class="tool-attend tool-bt-button tool-bt-attend" href="javascript:;" data-report-view='{"mod":"1592215036_002","spm":"1001.2101.3001.4232","extend1":"关注"}'>关注</a>
                <a class="tool-item-follow active-animation" style="display:none;">关注</a>
            </li>
            <li class="tool-item">
                    <p class="company active" id="health-companies" href="javascript:;" >一键三连</p>
                <span class="triplet-prompt">点赞Mark关注该博主, 随时了解TA的最新博文<img class="close-prompt" src="https://csdnimg.cn/release/blogv2/dist/pc/img/closePrompt.png"></span>
            </li>
        </ul>
        <div style="display:flex">
         </div>
         <div class="hot-word-tip-box">
          <span class="hot-word-text">已标记关键词</span>
          <span class="hot-word-count"></span> 
          <span class="hot-word-bar"></span>
          <span class="hot-word-clear">清除标记</span>
        </div>
    </div>  
</div>
<script type=text/javascript crossorigin src="https://csdnimg.cn/release/phoenix/production/qrcode-7c90a92189.min.js"></script>
<script src="//g.csdnimg.cn/??sharewx/1.2.1/sharewx.js" type="text/javascript"></script>
<script type="text/javascript" crossorigin src="https://g.csdnimg.cn/collection-box/2.0.3/collection-box.js"></script>
                <div id="dmp_ad_58" style="width:100%;overflow-x:hidden"><div id="kp_box_58" data-pid="58"><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-format="fluid"
     data-ad-layout-key="-gi-21+3s-18+2p"
     data-ad-client="ca-pub-1076724771190722"
     data-ad-slot="2537144170"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=58&a=3805&c=0&k=&spm=1001.2101.3001.5002&d=1&t=3&u=448b65f297aa49a8979ad94e75ee37c9" style="display: block;width: 0px;height: 0px;"></div></div>
            <div class="second-recommend-box recommend-box">
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_39832875/article/details/110540886"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"1","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_39832875/article/details/110540886"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_39832875/article/details/110540886" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"1","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_39832875/article/details/110540886"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control'>
					<em>python</em>对excel数据<em>求和</em>_<em>python</em>对excel文档去重及<em>求和</em>的实例
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_39832875" target="_blank"><span class="blog-title">weixin_39832875的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">12-03</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					55
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_39832875/article/details/110540886" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"1","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_39832875/article/details/110540886"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.control'>
				<div class="desc ellipsis-online ellipsis-online-1">废话不多说，估计只有我这个菜鸟废了2个小时才搞出来，主要是我想了太多方法来实现，最后都因为这因为那的原因失败了间接说明自己对可变与不可变类型的了解，还是不够透彻最后就用了个笨方法解决了！#coding:utf-8import xlrdimport xlwtimport osfrom collections import Counterworkbook = xlrd.open_workbook(r&#39;...</div>
			</a>
		</div>
	</div>
</div>
            </div>
<a id="commentBox" name="commentBox"></a>
<div class="comment-box">
	<div class="comment-edit-box d-flex">
		<a id="commentsedit"></a>
		<div class="user-img">
			<a href="javascript:void(0);" >
				<img class="show_loginbox" src="https://g.csdnimg.cn/static/user-img/anonymous-User-img.png">
			</a>
		</div>
		<form id="commentform">
			<img class="comment-sofa-flag" src="https://csdnimg.cn/release/blogv2/dist/pc/img/commentFlag@2x.png">
      <textarea class="comment-content" name="comment_content" id="comment_content" placeholder="优质评论可以帮助作者获得更高权重" maxlength="1000"></textarea>
			<div class="comment-emoticon"><img class="comment-emoticon-img" data-url="https://csdnimg.cn/release/blogv2/dist/pc/img/" src="https://csdnimg.cn/release/blogv2/dist/pc/img/emoticon.png" alt="表情包"></div> 
      <span class="comment-emoticon-tip">插入表情</span>
      <div class="comment-emoticon-box">
        <div class="comment-emoticon-img-box">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:001.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/001.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:002.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/002.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:003.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/003.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:004.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/004.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:005.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/005.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:006.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/006.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:007.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/007.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:008.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/008.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:009.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/009.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:010.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/010.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:011.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/011.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:012.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/012.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:013.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/013.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:014.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/014.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:015.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/015.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:016.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/016.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:017.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/017.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:018.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/018.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:019.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/019.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:020.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/020.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:021.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/021.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:022.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/022.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:023.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/023.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:024.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/024.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:025.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/025.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:026.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/026.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:027.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/027.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:028.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/028.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:029.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/029.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:030.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/030.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:031.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/031.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:032.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/032.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:033.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/033.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:034.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/034.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:035.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/035.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:036.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/036.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:037.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/037.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:038.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/038.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:039.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/039.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:040.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/040.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:041.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/041.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:042.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/042.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:043.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/043.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:044.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/044.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:045.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/045.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:046.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/046.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:047.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/047.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:048.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/048.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:049.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/049.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:050.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/050.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:051.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/051.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:052.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/052.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:053.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/053.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:054.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/054.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:055.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/055.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:056.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/056.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:057.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/057.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:058.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/058.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:059.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/059.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:060.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/060.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:061.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/061.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:062.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/062.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:063.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/063.png">
            <img class="emoticon-monkey-img" data-emoticon="[face]monkey2:064.png[/face]" src="https://g.csdnimg.cn/static/face/monkey2/064.png">
        </div>
      </div>
      <div class="opt-box">
				<div id="ubbtools" class="add_code">
					<a href="#insertcode" code="code" target="_self"><i class="icon iconfont icon-daima"></i></a>
				</div>
				<input type="hidden" id="comment_replyId" name="comment_replyId">
				<input type="hidden" id="article_id" name="article_id" value="89060798">
				<input type="hidden" id="comment_userId" name="comment_userId" value="">
				<input type="hidden" id="commentId" name="commentId" value="">
				<div class="dropdown" id="myDrap">
					<a class="dropdown-face d-flex align-items-center" data-toggle="dropdown" role="button"
						aria-haspopup="true" aria-expanded="false">
						<div class="txt-selected text-truncate">添加代码片</div>
						<svg class="icon d-block" width="200px" height="100.00px" viewBox="0 0 2048 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path  d="M597.33333292 298.666667h853.333334L1023.99999992 725.333333 597.33333292 298.666667z"  /></svg>
					</a>
					<ul class="dropdown-menu" id="commentCode" aria-labelledby="drop4">
						<li><a data-code="html">HTML/XML</a></li>
						<li><a data-code="objc">objective-c</a></li>
						<li><a data-code="ruby">Ruby</a></li>
						<li><a data-code="php">PHP</a></li>
						<li><a data-code="csharp">C</a></li>
						<li><a data-code="cpp">C++</a></li>
						<li><a data-code="javascript">JavaScript</a></li>
						<li><a data-code="python">Python</a></li>
						<li><a data-code="java">Java</a></li>
						<li><a data-code="css">CSS</a></li>
						<li><a data-code="sql">SQL</a></li>
						<li><a data-code="plain">其它</a></li>
					</ul>
				</div>
				<div class="right-box" id="rightBox" data-type="2">
							<span id="tip_comment" class="tip">还能输入<em>1000</em>个字符</span>
							<a data-report-click='{"mod":"1582594662_003","spm":"1001.2101.3001.4227","ab":"new"}'><input type="submit"
									class="btn btn-sm btn-comment" value="发表评论"></a>
				</div>
			</div>
		</form>
		<input type="button" class="bt-comment-show" value="评论">
	</div>
	<div class="comment-list-container">
		<a id="comments"></a>
		<div class="comment-list-box">
		</div>
		<div id="commentPage" class="pagination-box d-none"></div>
		<div class="opt-box text-center">
			<div class="btn btn-sm btn-link-blue" id="btnMoreComment"></div>
		</div>
	</div>
</div>            <div class="recommend-box insert-baidu-box">
                <div class="recommend-item-box clearfix" style="display:none"></div>
<div class="recommend-item-box type_blog clearfix" data-url="https://pig66.blog.csdn.net/article/details/88079011"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-OPENSEARCH-2.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"2","strategy":"OPENSEARCH","dest":"https://pig66.blog.csdn.net/article/details/88079011"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://pig66.blog.csdn.net/article/details/88079011" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-OPENSEARCH-2.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"2","strategy":"OPENSEARCH","dest":"https://pig66.blog.csdn.net/article/details/88079011"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-2.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-2.control'>
					<em>Python</em>学习路线（2021修正版）
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/u014044812" target="_blank"><span class="blog-title">猪哥</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">03-02</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					10万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://pig66.blog.csdn.net/article/details/88079011" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-OPENSEARCH-2.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"2","strategy":"OPENSEARCH","dest":"https://pig66.blog.csdn.net/article/details/88079011"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-2.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-2.control'>
				<div class="desc ellipsis-online ellipsis-online-1">经历长达近一个月的资源筛选过程终于结束，总共1.5T的资源经过：去重、筛选、整理、归档之后一份粗略的<em>Python</em>学习曲线资源已经成型，虽然中间经历了很多坎坷，不过最终还是完成，猪哥也是第一时间与大家分享出来。
资料主要分为两部分：一、各个学习网站论坛等，二、百度云资料。网站论坛资源更新快，可以与大家互动；而百度云资源主要为视频，方便大家下载和在线观看，两种资源结合使用，学习和查找知识更方便！
一、...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://shazhenyu.blog.csdn.net/article/details/88681429"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"3","strategy":"OPENSEARCH","dest":"https://shazhenyu.blog.csdn.net/article/details/88681429"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://shazhenyu.blog.csdn.net/article/details/88681429" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"3","strategy":"OPENSEARCH","dest":"https://shazhenyu.blog.csdn.net/article/details/88681429"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control'>
					<em>python</em>开发大全、系列文章、精品教程（转）
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/u014597198" target="_blank"><span class="blog-title">沙师弟专栏</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">03-20</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					6239
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://shazhenyu.blog.csdn.net/article/details/88681429" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"3","strategy":"OPENSEARCH","dest":"https://shazhenyu.blog.csdn.net/article/details/88681429"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-OPENSEARCH-3.control'>
				<div class="desc ellipsis-online ellipsis-online-1">文章目录1、简介2、分享3、<em>python</em>基础教程4、<em>python</em>应用教程5、<em>python</em>后台架构Django教程6、<em>python</em>自动化测试教程7、<em>python</em>网络爬虫教程8、<em>python</em>数据分析存储教程9、<em>python</em>可视化教程10、<em>python</em>爬虫助手11、<em>python</em>爬虫案例12、<em>python</em>机器学习算法案例13、机器学习总结14、<em>python</em>机器学习库教程15、<em>python</em>自然语言处理库教程...</div>
			</a>
		</div>
	</div>
</div>
		<dl id="recommend-item-box-tow" class="recommend-item-box type_blog clearfix">
			
		</dl>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/qq_43529415/article/details/100847887"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"4","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/qq_43529415/article/details/100847887"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/qq_43529415/article/details/100847887" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"4","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/qq_43529415/article/details/100847887"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control'>
					<em>python</em>与anaconda安装（先安装了<em>python</em>后安装anaconda，基于<em>python</em>已存在的基础上安装anaconda）&mdash;&mdash;逼死强迫症、超<em>详解</em>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/qq_43529415" target="_blank"><span class="blog-title">NBS的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">09-15</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					10万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/qq_43529415/article/details/100847887" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"4","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/qq_43529415/article/details/100847887"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control'>
				<div class="desc ellipsis-online ellipsis-online-1">目录欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题，有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能，丰富你的文章UML 图表FLowchart流程图导出与导入导出导入
#一、安装<em>python</em>
欢迎...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/xiaoyu90520/article/details/65971925"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"5","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/xiaoyu90520/article/details/65971925"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/xiaoyu90520/article/details/65971925" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"5","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/xiaoyu90520/article/details/65971925"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control'>
					<em>Python</em> 中<em>求和</em><em>函数</em> <em>sum</em> 用法
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/xiaoyu90520" target="_blank"><span class="blog-title">要坚持，要认真。</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">03-25</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					6万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/xiaoyu90520/article/details/65971925" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"5","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/xiaoyu90520/article/details/65971925"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-5.control'>
				<div class="desc ellipsis-online ellipsis-online-1"><em>Python</em> 中<em>求和</em><em>函数</em> <em>sum</em> 用法今天在看《集体编程智慧》这本书的时候，看到一段<em>Python</em>代码，当时是百思不得其解，总觉得是书中排版出错了，后来去了解了一下<em>sum</em>的用法，看了一些<em>Python</em>大神写的代码后才发现是自己浅薄了！特在此记录一下。书中代码段摘录如下：
from math import sqrtdef sim_distance(prefs, person1, person2):</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/Dreamer_rx/article/details/100736328"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"6","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/Dreamer_rx/article/details/100736328"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/Dreamer_rx/article/details/100736328" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"6","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/Dreamer_rx/article/details/100736328"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control'>
					<em>python</em>中<em>sum</em><em>函数</em><em>详解</em>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/Dreamer_rx" target="_blank"><span class="blog-title">Dreamer_rx的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">09-11</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					2064
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/Dreamer_rx/article/details/100736328" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"6","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/Dreamer_rx/article/details/100736328"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-6.control'>
				<div class="desc ellipsis-online ellipsis-online-1"><em>python</em>3中<em>sum</em>的用法
<em>python</em>内置的<em>sum</em><em>函数</em>
对象是列表，元组，集合，可以混合起来使用
	
	&gt;&gt;&gt;<em>sum</em>([1,2,3],2)
	8
	&gt;&gt;&gt;<em>sum</em>((1,2,3))
	6
	&gt;&gt;&gt;<em>sum</em>({1,2,3})
	6
	&gt;&gt;&gt;<em>sum</em>(range(5))
	10



 


numpy中<em>sum</em><em>函数</em>

	import...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_course clearfix" data-url="https://edu.csdn.net/course/detail/26676"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-course-OPENSEARCH-7.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"7","strategy":"OPENSEARCH","dest":"https://edu.csdn.net/course/detail/26676"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://edu.csdn.net/course/detail/26676" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-course-OPENSEARCH-7.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"7","strategy":"OPENSEARCH","dest":"https://edu.csdn.net/course/detail/26676"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-course-OPENSEARCH-7.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-course-OPENSEARCH-7.control'>
					零基础掌握 <em>Python</em> 入门到实战
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info display-flex">
					<span class="info-block">11-08</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://edu.csdn.net/course/detail/26676" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-course-OPENSEARCH-7.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"7","strategy":"OPENSEARCH","dest":"https://edu.csdn.net/course/detail/26676"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-course-OPENSEARCH-7.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-course-OPENSEARCH-7.control'>
				<div class="desc ellipsis-online ellipsis-online-1">
	  


	
		  
	
	
		【为什么学<em>Python</em>】 
	
	
		 
	
	
		<em>Python</em> 是当今非常热门的语言之一，2020年的 TIOBE 编程语言排行榜中 ，<em>Python</em>名列第一，并且其流行度依然处在上升势头。 
	


	 


	在2015年的时候，在网上还经常看到学<em>Python</em>还是学R的讨论，那时候老齐就选择了<em>Python</em>，并且开始着手出版《跟老齐学<em>Python</em>》。时至今日，已经无需争论。<em>Python</em>给我们带来的，不仅仅是项目上的收益，我们更可以从它&ldquo;开放、简洁&rdquo;哲学观念中得到技术发展路线的启示。 


	


	借此机会，老齐联合CSDN推出了本课程，希望能影响更多的人走进<em>Python</em>，踏入编程的大门。 


	
 


	  


	
		【课程设计】 
	
	
		
 
	
	
		本课程共包含三大模块： 
	


	
 


	一、基础知识篇 


	内置对象和基本的运算、语句，是<em>Python</em>语言的基础。本课程在讲解这部分知识的时候，不是简单地将各种知识做简单的堆砌，而是在兼顾内容的全面性的同时，更重视向学习者讲授掌握有关知识的方法，比如引导学习者如何排查错误、如何查看和理解文档等。 


	&nbsp; 


	二、面向对象篇 


	&ldquo;面向对象（OOP）&rdquo;是目前企业开发主流的开发方式，本课程从一开始就渗透这种思想，并且在&ldquo;<em>函数</em>&rdquo;和&ldquo;类&rdquo;的学习中强化面向对象开发方式的学习&mdash;&mdash;这是本课程与一般课程的重要区别，一般的课程只在&ldquo;类&rdquo;这里才提到&ldquo;对象&rdquo;，会导致学习者茫然失措，并生畏惧，乃至于放弃学习。本课程则是从开始以&ldquo;润物细无声&rdquo;的方式，渗透对象概念，等学习到本部分的时候，OOP对学习者而言有一种&ldquo;水到渠成&rdquo;的感觉。 


	&nbsp; 


	三、工具实战篇 


	在项目实战中，除了前述的知识之外，还会用到很多其他工具，至于那些工具如何安装？怎么自己做工具？有那些典型工具？都是这部分的内容。具体来说，就是要在这部分介绍<em>Python</em>标准库的应用以及第三方包的安装，还有如何开发和发布自己的工具包。此外，很多学习<em>Python</em>的同学，未来要么从事数据科学、要么从事Web开发，不论哪个方向，都离不开对数据库的操作，本部分还会从实战的角度，介绍如何用<em>Python</em>语言操作常用数据库。 


	


	 
</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_34886431/article/details/113493911"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"8","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_34886431/article/details/113493911"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_34886431/article/details/113493911" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"8","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_34886431/article/details/113493911"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.control'>
					<em>python</em> <em>sum</em><em>函数</em>导入list_<em>sum</em><em>求和</em><em>函数</em>怎么在<em>Python</em>中使用
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_34886431" target="_blank"><span class="blog-title">weixin_34886431的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">01-28</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					60
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_34886431/article/details/113493911" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"8","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_34886431/article/details/113493911"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-8.control'>
				<div class="desc ellipsis-online ellipsis-online-1"><em>sum</em><em>求和</em><em>函数</em>怎么在<em>Python</em>中使用发布时间：2021-01-12 15:10:47来源：亿速云阅读：55作者：Leah本篇文章为大家展示了<em>sum</em><em>求和</em><em>函数</em>怎么在<em>Python</em>中使用，内容简明扼要并且容易理解，绝对能使你眼前一亮，通过这篇文章的详细介绍希望你能有所收获。frommathimportsqrtdefsim_distance(prefs,person1,person2):#得...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/zhuzuwei/article/details/77766173"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"9","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/zhuzuwei/article/details/77766173"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/zhuzuwei/article/details/77766173" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"9","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/zhuzuwei/article/details/77766173"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.control'>
					<em>python</em> 列表，数组和矩阵<em>sum</em>的用法区别
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/zhuzuwei" target="_blank"><span class="blog-title">zhuzuwei的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">09-01</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					4万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/zhuzuwei/article/details/77766173" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"9","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/zhuzuwei/article/details/77766173"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-9.control'>
				<div class="desc ellipsis-online ellipsis-online-1">1. 列表使用<em>sum</em>, 如下代码，对1维列表和二维列表，numpy.<em>sum</em>(a)都能将列表a中的所有元素<em>求和</em>并返回，a.<em>sum</em>()用法是非法的。
&nbsp;但是对于1维列表，<em>sum</em>(a)和numpy.<em>sum</em>(a)效果相同，对于二维列表，<em>sum</em>(a)会报错，用法非法。


2. 在数组和矩阵中使用<em>sum</em>: 对数组b和矩阵c,代码b.<em>sum</em>()，np.<em>sum</em>(b),c.<em>sum</em>(),np.<em>sum</em>(c)都</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/weixin_45423208/article/details/113621524"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-10.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"10","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_45423208/article/details/113621524"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/weixin_45423208/article/details/113621524" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-10.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"10","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_45423208/article/details/113621524"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-10.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-10.control'>
					<em>Python</em><em>求和</em><em>函数</em><em>sum</em>()
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/weixin_45423208" target="_blank"><span class="blog-title">只爱宝贝</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">02-03</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					123
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/weixin_45423208/article/details/113621524" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-10.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"10","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/weixin_45423208/article/details/113621524"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-10.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-10.control'>
				<div class="desc ellipsis-online ellipsis-online-1">#<em>Python</em><em>求和</em><em>函数</em><em>sum</em>()
若用<em>求和</em><em>函数</em><em>sum</em>()直接求几个int的和时会报错
就像这样
&gt;&gt;&gt; total=<em>sum</em>(1,2,3)
Traceback (most recent call last):
  File &quot;&lt;pyshell#14&gt;&quot;, line 1, in &lt;module&gt;
    total=<em>sum</em>(1,2,3)
TypeError: <em>sum</em> expected at most 2 arguments, got 3

这样
&gt;&gt;&gt;</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_download clearfix" data-url="https://download.csdn.net/download/weixin_38614391/12867977"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-download-BlogCommendFromMachineLearnPai2-11.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"11","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://download.csdn.net/download/weixin_38614391/12867977"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://download.csdn.net/download/weixin_38614391/12867977" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-download-BlogCommendFromMachineLearnPai2-11.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"11","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://download.csdn.net/download/weixin_38614391/12867977"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-download-BlogCommendFromMachineLearnPai2-11.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromMachineLearnPai2-11.control'>
					基于<em>Python</em>中<em>求和</em><em>函数</em><em>sum</em>的用法<em>详解</em>
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info display-flex">
					<span class="info-block">09-20</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://download.csdn.net/download/weixin_38614391/12867977" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-download-BlogCommendFromMachineLearnPai2-11.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"11","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://download.csdn.net/download/weixin_38614391/12867977"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-download-BlogCommendFromMachineLearnPai2-11.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromMachineLearnPai2-11.control'>
				<div class="desc ellipsis-online ellipsis-online-1">今天小编就为大家分享一篇基于<em>Python</em>中<em>求和</em><em>函数</em><em>sum</em>的用法<em>详解</em>，具有很好的参考价值，希望对大家有所帮助。一起跟随小编过来看看吧</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/rifengxxc/article/details/75008427"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"12","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/rifengxxc/article/details/75008427"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/rifengxxc/article/details/75008427" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"12","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/rifengxxc/article/details/75008427"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.control'>
					<em>python</em> 中 np.<em>sum</em>()<em>函数</em> 通俗易懂理解！
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/rifengxxc" target="_blank"><span class="blog-title">rifengxxc的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">07-12</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					4万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/rifengxxc/article/details/75008427" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"12","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/rifengxxc/article/details/75008427"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-12.control'>
				<div class="desc ellipsis-online ellipsis-online-1"><em>python</em> numpy数组<em>sum</em><em>函数</em></div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/momaojia/article/details/75174279"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-13.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"13","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/momaojia/article/details/75174279"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/momaojia/article/details/75174279" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-13.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"13","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/momaojia/article/details/75174279"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-13.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-13.control'>
					<em>python</em>实现列表对应元素<em>求和</em>的两种方法
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/momaojia" target="_blank"><span class="blog-title">momaojia的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">07-15</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					7万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/momaojia/article/details/75174279" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-13.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"13","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/momaojia/article/details/75174279"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-13.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-13.control'>
				<div class="desc ellipsis-online ellipsis-online-1">这篇主要介绍<em>python</em>实现列表对应元素<em>求和</em>的两种方法。
&nbsp; &nbsp;方法一：采用zip（）方法：
&nbsp;&nbsp;# -*- coding: utf-8 -*-
import math
import numpy as np
a= [1,2,3] 
b =[4,5,6] 

#方法1
c=[]
for i,j in zip(a,b):
    <em>sum</em>m=i+j
    c.append(<em>sum</em>m)
print(</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/u012005313/article/details/49153261"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-14.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"14","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/u012005313/article/details/49153261"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/u012005313/article/details/49153261" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-14.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"14","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/u012005313/article/details/49153261"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-14.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-14.control'>
					<em>python</em> <em>sum</em>()<em>函数</em>和.<em>sum</em>(axis=0)<em>函数</em>的使用
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/u012005313" target="_blank"><span class="blog-title">u012005313的专栏</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">10-15</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					2万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/u012005313/article/details/49153261" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-14.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"14","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/u012005313/article/details/49153261"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-14.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-14.control'>
				<div class="desc ellipsis-online ellipsis-online-1">参考：
http://www.cnblogs.com/yyxayz/p/4033736.html
http://www.<em>python</em>tab.com/html/2013/<em>python</em>jichu_0918/568.html
《Machine Learning in Action》第二章


##################################################</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/addresser/article/details/81356040"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-15.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"15","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/addresser/article/details/81356040"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/addresser/article/details/81356040" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-15.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"15","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/addresser/article/details/81356040"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-15.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-15.control'>
					<em>python</em> list <em>sum</em> 的一个问题
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/addresser" target="_blank"><span class="blog-title">addresser的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">08-02</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					1万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/addresser/article/details/81356040" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-15.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"15","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/addresser/article/details/81356040"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-15.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-15.control'>
				<div class="desc ellipsis-online ellipsis-online-1">In [66]:&nbsp;al = [1,2,1,4]

In [67]: <em>sum</em>(al[0:3])

Out[67]:&nbsp;4

In [72]: <em>sum</em>(al[0:4])

Out[72]:&nbsp;8

&nbsp;

In [71]:&nbsp;al[4]

---------------------------------------------------------------------------

IndexErro...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/Jerry_1126/article/details/79937454"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"16","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/Jerry_1126/article/details/79937454"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/Jerry_1126/article/details/79937454" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"16","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/Jerry_1126/article/details/79937454"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.control'>
					<em>Python</em>中的<em>sum</em><em>函数</em>一个妙用
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/Jerry_1126" target="_blank"><span class="blog-title">杰瑞的专栏</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">04-14</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					8439
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/Jerry_1126/article/details/79937454" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"16","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/Jerry_1126/article/details/79937454"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-16.control'>
				<div class="desc ellipsis-online ellipsis-online-1">有一道题，将一个二元列表，综合成一个一元列表。 比如:[[1],[2,3],[4,5,6]]，将其转成[1, 2, 3, 4, 5, 6].这个时候使用<em>Python</em>自带的<em>sum</em><em>函数</em>会很简单。 先看下<em>sum</em><em>函数</em>的帮助文档:从上面的帮助文档可以看出:<em>sum</em><em>函数</em>是个内置<em>函数</em>，可以求一个数字列表的和，并且可以带初始值，如果不带初始值的话，默认是0.比如说：&amp;gt;&amp;gt;&amp;gt; <em>sum</em>([1,2,3,4...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://blog.csdn.net/yl_best/article/details/102460727"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-17.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"17","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/yl_best/article/details/102460727"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://blog.csdn.net/yl_best/article/details/102460727" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-17.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"17","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/yl_best/article/details/102460727"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-17.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-17.control'>
					<em>Python</em>中<em>sum</em><em>函数</em>的说明与代码
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/yl_best" target="_blank"><span class="blog-title">独步天秤的博客</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">10-09</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					1103
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://blog.csdn.net/yl_best/article/details/102460727" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-17.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"17","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://blog.csdn.net/yl_best/article/details/102460727"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-17.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-17.control'>
				<div class="desc ellipsis-online ellipsis-online-1">目录

<em>Python</em>内置的<em>sum</em><em>函数</em>

笔者的理解

拓展：NumPy中<em>sum</em><em>函数</em>

求相似度时看到的，碰到一个疑问的地方，先写下来。

《机器学习基础：相似度和距离度量究竟是什么》

<em>Python</em>内置的<em>sum</em><em>函数</em>

作用：对可迭代对象进行<em>求和</em>计算。


<em>sum</em>(iterable[, start])

iterable -- 可迭代对象，如：列表、元组、集合。
	start -- 指定相加的参数，...</div>
			</a>
		</div>
	</div>
</div>
<div class="recommend-item-box type_blog clearfix" data-url="https://lenskit.blog.csdn.net/article/details/72847622"  data-report-view='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-18.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"18","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://lenskit.blog.csdn.net/article/details/72847622"}'>
	<div class="content-box">
		<div class="content-blog display-flex">
			<div class="title-box">
				<a href="https://lenskit.blog.csdn.net/article/details/72847622" class="tit ellipsis-online ellipsis-online-1" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-18.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"18","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://lenskit.blog.csdn.net/article/details/72847622"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-18.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-18.control'>
					<em>python</em>&mdash;&mdash;修改Dataframe列名的两种方法
				</a>
			</div>
			<div class="info-box display-flex">
				<div class="info">
					<a href="https://blog.csdn.net/chenKFKevin" target="_blank"><span class="blog-title">Lenskit</span></a>
				</div>
				<div class="info display-flex">
					<span class="info-block time">06-02</span>
					<span class="info-block read"><img class="read-img" src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					16万+
					</span>
				</div>
			</div>
		</div>
		<div class="desc-box">
			<a href="https://lenskit.blog.csdn.net/article/details/72847622" target="_blank"  data-report-click='{"ab":"new","mod":"popu_387","extra":"{\"utm_medium\":\"distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-18.control\"}","dist_request_id":"1328592.1612.16147010690191381","index":"18","strategy":"BlogCommendFromMachineLearnPai2","dest":"https://lenskit.blog.csdn.net/article/details/72847622"}'  data-report-query='utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-18.control&dist_request_id=1328592.1612.16147010690191381&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-18.control'>
				<div class="desc ellipsis-online ellipsis-online-1">首先新建一个Dataframe
import pandas as pd
df = pd.DataFrame({&#39;a&#39;:[1,2,3],&#39;b&#39;:[1,2,3]})


如下：
 a b
0 1 1
1 2 2
2 3 3


1、修改列名a，b为A、B。
df.columns = [&#39;A&#39;,&#39;B&#39;]

2、只修改列名a为A</div>
			</a>
		</div>
	</div>
</div>
            </div>
            <div class="template-box">
                <span>©️2020 CSDN</span>
                <span>皮肤主题: 大白</span>
                <span> 设计师:CSDN官方博客</span>
                <span>
                    <a href="https://blog.csdn.net/" class="back-home c-blue c-blue-hover c-blue-focus">返回首页</a>
                </span>
            </div>
<div class="blog-footer-bottom" style="margin-top:10px;"></div>
<script src="https://g.csdnimg.cn/common/csdn-footer/csdn-footer.js" data-isfootertrack="false" type="text/javascript"></script>
<script type="text/javascript">
    window.csdn.csdnFooter.options = {
        el: '.blog-footer-bottom',
        type: 2
    }
</script>        </main>
<aside class="blog_container_aside">
    <div id="asideProfile" class="aside-box">
    <div class="profile-intro d-flex">
        <div class="avatar-box d-flex justify-content-center flex-column">
            <a href="https://blog.csdn.net/amuchena" data-report-click='{"mod":"popu_379","spm":"1001.2101.3001.4121","dest":"https://blog.csdn.net/amuchena","ab":"new"}'>
                <img src="https://profile.csdnimg.cn/C/A/D/3_amuchena" class="avatar_pic">
            </a>
        </div>
        <div class="user-info d-flex flex-column profile-intro-name-box">
            <div class="profile-intro-name-boxTop">
                <a href="https://blog.csdn.net/amuchena" class="" id="uid" title="amuchena" data-report-click='{"mod":"popu_379","spm":"1001.2101.3001.4122","dest":"https://blog.csdn.net/amuchena","ab":"new"}'>
                    <span class="name " username="amuchena">amuchena</span>
                </a>
                <span>
                </span>
                <span class="flag expert-blog">
                <span class="bubble">CSDN认证博客专家</span>
                </span>
                <span class="flag company-blog">
                <span class="bubble">CSDN认证企业博客</span>
                </span>
            </div>
            <div class="profile-intro-name-boxFooter">
                <span class="personal-home-page personal-home-years">码龄2年</span>
                    <span class="personal-home-page">
                    <a class="personal-home-certification" href="https://i.csdn.net/#/uc/profile?utm_source=14998968" target="_blank" title="暂无认证">
                    <img src="https://csdnimg.cn/identity/nocErtification.png" alt="">
                    暂无认证
                    </a>
                    </span>
            </div>
        </div>
    </div>
    <div class="data-info d-flex item-tiling">
        <dl class="text-center" title="3">
            <a href="https://blog.csdn.net/amuchena" data-report-click='{"mod":"1598321000_001","spm":"1001.2101.3001.4310"}' data-report-query="t=1">  
                <dt><span class="count">3</span></dt>
                <dd class="font">原创</dd>
            </a>
        </dl>
        <dl class="text-center" data-report-click='{"mod":"1598321000_002","spm":"1001.2101.3001.4311"}' title="241765">
            <a href="https://blog.csdn.net/rank/writing_rank" target="_blank">
                <dt><span class="count">24万+</span></dt>
                <dd class="font">周排名</dd>
            </a>
        </dl>
        <dl class="text-center" title="352131">
            <a href="https://blog.csdn.net/rank/writing_rank_total" data-report-click='{"mod":"1598321000_003","spm":"1001.2101.3001.4312"}' target="_blank">
                <dt><span class="count">35万+</span></dt>
                <dd class="font">总排名</dd>
            </a>
        </dl>
        <dl class="text-center" style="min-width:58px" title="45754">  
            <dt><span class="count">4万+</span></dt>
            <dd>访问</dd>
        </dl>
        <dl class="text-center" title="2级,点击查看等级说明">
            <dt><a href="https://blog.csdn.net/home/help.html#level" target="_blank">
                <img class="level" src="https://csdnimg.cn/identity/blog2.png">
            </a>
            </dt>
            <dd>等级</dd>
        </dl>
    </div>
    <div class="item-rank"></div>
    <div class="data-info d-flex item-tiling">
        <dl class="text-center" title="201">
            <dt><span class="count">201</span></dt>
            <dd>积分</dd>
        </dl>
         <dl class="text-center" id="fanBox" title="12">
            <dt><span class="count" id="fan">12</span></dt>
            <dd>粉丝</dd>
        </dl>
        <dl class="text-center" title="51">
            <dt><span class="count">51</span></dt>
            <dd>获赞</dd>
        </dl>
        <dl class="text-center" title="22">
            <dt><span class="count">22</span></dt>
            <dd>评论</dd>
        </dl>
        <dl class="text-center" title="90">
            <dt><span class="count">90</span></dt>
            <dd>收藏</dd>
        </dl>
    </div>
    <div class="aside-box-footer" data-report-view='{"spm":"3001.4296"}'>
        <div class="badge-box d-flex">
            <div class="badge d-flex">
                <div class="icon-badge" title="签到新秀">
                    <div class="mouse-box">
                        <img class="medal-img" data-report-click='{"spm":"3001.4296"}' src="https://csdnimg.cn/medal/qiandao3@240.png" alt="签到新秀">
                    </div>
                </div>
                <div class="icon-badge" title="勤写标兵Lv1">
                    <div class="mouse-box">
                        <img class="medal-img" data-report-click='{"spm":"3001.4296"}' src="https://csdnimg.cn/medal/qixiebiaobing1@240.png" alt="勤写标兵Lv1">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="profile-intro-name-boxOpration">
        <div class="opt-letter-watch-box">
        <a class="bt-button personal-letter" href="https://im.csdn.net/chat/amuchena" target="_blank" rel="noopener">私信</a>
        </div>
        <div class="opt-letter-watch-box"> 
            <a class="personal-watch bt-button" id="btnAttent" >关注</a>  
        </div>
    </div>
</div>
<div id="asideSearchArticle" class="aside-box">
	<div class="aside-content search-comter">
    <div class="aside-search aside-search-blog">         
        <input type="text" class="input-serch-blog" name="" autocomplete="off" value="" id="search-blog-words" placeholder="搜博主文章">
        <a class="btn-search-blog">
                    <img src="//csdnimg.cn/cdn/content-toolbar/csdn-sou.png?v=1587021042">
        </a>
    </div>
    </div>
</div>


<div id="asideHotArticle" class="aside-box">
	<h3 class="aside-title">热门文章</h3>
	<div class="aside-content">
		<ul class="hotArticle-list">
			<li>
				<a href="https://blog.csdn.net/amuchena/article/details/89060798" target="_blank"  data-report-click='{"mod":"popu_541","spm":"1001.2101.3001.4139","dest":"https://blog.csdn.net/amuchena/article/details/89060798","ab":"new"}'>
				python求和函数sum()详解
					<img src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					<span class="read">44762</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/amuchena/article/details/110312400" target="_blank"  data-report-click='{"mod":"popu_541","spm":"1001.2101.3001.4139","dest":"https://blog.csdn.net/amuchena/article/details/110312400","ab":"new"}'>
				Java中Final修饰对象
					<img src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					<span class="read">467</span>
                </a>
			</li>
			<li>
				<a href="https://blog.csdn.net/amuchena/article/details/89077163" target="_blank"  data-report-click='{"mod":"popu_541","spm":"1001.2101.3001.4139","dest":"https://blog.csdn.net/amuchena/article/details/89077163","ab":"new"}'>
				算法基础(Algorithm)
					<img src="https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png" alt="">
					<span class="read">274</span>
                </a>
			</li>
		</ul>
	</div>
</div>
<div id="asideCategory" class="aside-box ">
    <h3 class="aside-title">分类专栏</h3>
    <div class="aside-content">
        <ul>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_10768367.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_10768367.html","ab":"new"}'>
                    <img src="https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                    <span class="title oneline">
                        <span class="text">软件安装</span>
                    </span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_10677792.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_10677792.html","ab":"new"}'>
                    <img src="https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                    <span class="title oneline">
                        <span class="text">JS</span>
                    </span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_10619444.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_10619444.html","ab":"new"}'>
                    <img src="https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                    <span class="title oneline">
                        <span class="text">JAVA面试题</span>
                    </span>
                    <span class="count float-right">1篇</span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_8833231.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_8833231.html","ab":"new"}'>
                    <img src="https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                    <span class="title oneline">
                        <span class="text">python</span>
                    </span>
                    <span class="count float-right">1篇</span>
                </a>
            </li>
            <li class="">
                <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_8835633.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_8835633.html","ab":"new"}'>
                    <img src="https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                    <span class="title oneline">
                        <span class="text">算法基础</span>
                    </span>
                </a>
            </li>
        </ul>
    </div>
</div>
<div id="asideNewComments" class="aside-box">
    <h3 class="aside-title">最新评论</h3>
    <div class="aside-content">
        <ul class="newcomment-list">
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/amuchena/article/details/110312400#comments_15116595" data-report-click='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/110312400#comments_15116595","ab":"new"}' data-report-view='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/110312400#comments_15116595","ab":"new"}'>Java中Final修饰对象</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/weixin_46118447" class="user-name" target="_blank">weixin_46118447: </a>
                    <span class="code-comments">因为定义成了类级变量所以 hashcode不会变和final应该没有关系</span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/amuchena/article/details/89060798#comments_15046465" data-report-click='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/89060798#comments_15046465","ab":"new"}' data-report-view='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/89060798#comments_15046465","ab":"new"}'>python求和函数sum()详解</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/weixin_43007097" class="user-name" target="_blank">沈文全: </a>
                    <span class="code-comments">新码农学习中<img src="https://g.csdnimg.cn/static/face/monkey2/006.png" alt='表情包' ></span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/amuchena/article/details/110312400#comments_14131101" data-report-click='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/110312400#comments_14131101","ab":"new"}' data-report-view='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/110312400#comments_14131101","ab":"new"}'>Java中Final修饰对象</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/SoULikeMe" class="user-name" target="_blank">赵博林: </a>
                    <span class="code-comments">总结的不错</span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/amuchena/article/details/110312400#comments_14127305" data-report-click='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/110312400#comments_14127305","ab":"new"}' data-report-view='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/110312400#comments_14127305","ab":"new"}'>Java中Final修饰对象</a>
                <p class="comment ellipsis">
                    <a href="https://blog.csdn.net/amuchena" class="user-name" target="_blank">amuchena: </a>
                    <span class="code-comments">可以啊(*^▽^*)</span>
                </p>
            </li>
            <li>
                <a class="title text-truncate" target="_blank" href="https://blog.csdn.net/amuchena/article/details/110312400#comments_14048294" data-report-click='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/110312400#comments_14048294","ab":"new"}' data-report-view='{"mod":"popu_542","spm":"1001.2101.3001.4231","dest":"https://blog.csdn.net/amuchena/article/details/110312400#comments_14048294","ab":"new"}'>Java中Final修饰对象</a>
                <p class="comment ellipsis">
                    <a href="https://lichen.blog.csdn.net" class="user-name" target="_blank">快乐的小智障: </a>
                    <span class="code-comments">nice</span>
                </p>
            </li>
        </ul>
    </div>
</div>
<div id="asideArchive" class="aside-box" style="display:block!important; width:300px;">
    <h3 class="aside-title">最新文章</h3>
    <div class="aside-content">
        <ul class="inf_list clearfix">
            <li class="clearfix">
            <a href="https://blog.csdn.net/amuchena/article/details/110312400" target="_blank" data-report-click='{"mod":"popu_382","spm":"1001.2101.3001.4136","dest":"https://blog.csdn.net/amuchena/article/details/110312400","ab":"new"}' data-report-view='{"mod":"popu_382","dest":"https://blog.csdn.net/amuchena/article/details/110312400","ab":"new"}'>Java中Final修饰对象</a>
            </li>
            <li class="clearfix">
            <a href="https://blog.csdn.net/amuchena/article/details/89077163" target="_blank" data-report-click='{"mod":"popu_382","spm":"1001.2101.3001.4136","dest":"https://blog.csdn.net/amuchena/article/details/89077163","ab":"new"}' data-report-view='{"mod":"popu_382","dest":"https://blog.csdn.net/amuchena/article/details/89077163","ab":"new"}'>算法基础(Algorithm)</a>
            </li>
        </ul>
        <div class="archive-bar"></div>
        <div class="archive-box">
                <div class="archive-list-item"><a href="https://blog.csdn.net/amuchena/article/month/2020/11" target="_blank" data-report-click='{"mod":"popu_538","spm":"1001.2101.3001.4138","ab":"new","dest":""}'><span class="year">2020年</span><span class="num">1篇</span></a></div>
                <div class="archive-list-item"><a href="https://blog.csdn.net/amuchena/article/month/2019/04" target="_blank" data-report-click='{"mod":"popu_538","spm":"1001.2101.3001.4138","ab":"new","dest":""}'><span class="year">2019年</span><span class="num">2篇</span></a></div>
        </div>
    </div>
</div>
	<div id="footerRightAds" class="isShowFooterAds">
		<div class="aside-box">
			<div id="kp_box_57" data-pid="57"><div id="protag-banner-2"></div>
<script type="text/javascript">
  window.googletag = window.googletag || { cmd: [] };
  window.protag = window.protag || { cmd: [] };
  window.protag.cmd.push(function () {
   window.protag.display("protag-banner-2");
  });
</script>
<script type="text/javascript" async="async" src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>  
<script async="async" type="text/javascript" src="https://protagcdn.com/s/csdn.net/bbs/protag-banners.js"></script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=57&a=2234&c=0&k=&spm=1001.2101.3001.5001&d=1&t=3&u=bdfc79580adc43d59229fd0a4ce27688" style="display: block;width: 0px;height: 0px;"></div>
		</div>
	</div>
    <!-- 详情页显示目录 -->
<!--文章目录-->
<div id="asidedirectory" class="aside-box">
    <div class='groupfile' id="directory">
        <h3 class="aside-title">目录</h3>
        <div class="align-items-stretch group_item">
            <div class="pos-box">
            <div class="scroll-box">
                <div class="toc-box"></div>
            </div>
            </div>
        </div>
    </div>
</div>
</aside>
<script>
	$("a.flexible-btn").click(function(){
		$(this).parents('div.aside-box').removeClass('flexible-box');
		$(this).parents("p.text-center").remove();
	})
</script>
<script type="text/javascript"  src="https://g.csdnimg.cn/user-tooltip/2.4/user-tooltip.js"></script>
<script type="text/javascript"  src="https://g.csdnimg.cn/user-medal/1.0.6/user-medal.js"></script>    </div>
<div class="recommend-right  align-items-stretch clearfix" id="rightAside" data-type="recommend">
    <aside class="recommend-right_aside">
        <div id="recommend-right" >
                        <div class='flex-column aside-box groupfile' id="groupfile">
                <div class="groupfile-div">
                <h3 class="aside-title">目录</h3>
                <div class="align-items-stretch group_item">
                    <div class="pos-box">
                        <div class="scroll-box">
                            <div class="toc-box"></div>
                        </div>
                    </div>
                </div>
                </div>
            </div>
                <div id="recommendAdBox">
                    <div id="kp_box_479" data-pid="479"><div id="protag-banner-3"></div>
<script type="text/javascript">
  window.googletag = window.googletag || { cmd: [] };
  window.protag = window.protag || { cmd: [] };
  window.protag.cmd.push(function () {
   window.protag.display("protag-banner-3");
  });
</script>
<script type="text/javascript" async="async" src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script>  
<script async="async" type="text/javascript" src="https://protagcdn.com/s/csdn.net/bbs/protag-banners.js"></script><img class="pre-img-lasy" data-src="https://kunyu.csdn.net/1.png?p=479&a=3476&c=0&k=&spm=1001.2101.3001.4834&d=1&t=3&u=60fea70f986f4bb2954d47c6438f9034" style="display: block;width: 0px;height: 0px;"></div>
                </div>
            <div class='aside-box kind_person d-flex flex-column'>
                    <h3 class="aside-title">分类专栏</h3>
                    <div class="align-items-stretch kindof_item" id="kind_person_column">
                        <div class="aside-content">
                            <ul>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_10768367.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_10768367.html","ab":"new"}'>
                                        <img src="https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                                        <span class="title oneline">
                                            <span class="text">软件安装</span>
                                        </span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_10677792.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_10677792.html","ab":"new"}'>
                                        <img src="https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                                        <span class="title oneline">
                                            <span class="text">JS</span>
                                        </span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_10619444.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_10619444.html","ab":"new"}'>
                                        <img src="https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                                        <span class="title oneline">
                                            <span class="text">JAVA面试题</span>
                                        </span>
                                        <span class="count float-right">1篇</span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_8833231.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_8833231.html","ab":"new"}'>
                                        <img src="https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                                        <span class="title oneline">
                                            <span class="text">python</span>
                                        </span>
                                        <span class="count float-right">1篇</span>
                                    </a>
                                </li>
                                <li class="">
                                    <a class="clearfix" target="_blank" href="https://blog.csdn.net/amuchena/category_8835633.html" data-report-click='{"mod":"popu_537","spm":"1001.2101.3001.4137","strategy":"pc付费专栏左侧入口","dest":"https://blog.csdn.net/amuchena/category_8835633.html","ab":"new"}'>
                                        <img src="https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64" alt="" onerror="this.src='https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64'">
                                        <span class="title oneline">
                                            <span class="text">算法基础</span>
                                        </span>
                                    </a>
                                </li>
                            </ul>
                        </div>
                    </div>
            </div>
        </div>
    </aside>
</div>

</div>
<div class="mask-dark"></div>
<script type="text/javascript">
    var timert = setInterval(function(){
      sideToolbar = $(".csdn-side-toolbar");
      if (sideToolbar.length > 0) {
        sideToolbar.css('cssText','bottom:64px !important;')
        clearInterval(timert);
      }
    }, 200);
</script>
<script>
    var articleId = 89060798;
    var commentscount = 14;
    var curentUrl = "https://blog.csdn.net/amuchena/article/details/89060798";
    var myUrl = "https://my.csdn.net/";
    var highlight = ["python","求和","函数","sum","详解"];//高亮数组
    var isRecommendModule = true;
    var isBaiduPre = false;
    var baiduCount = 2;
    var share_card_url = "https://blog.csdn.net/amuchena/article/shareArticleCardPage?article_id=89060798"
	var articleType = 1;
    var baiduKey = "python sum";
    var needInsertBaidu = true;
    var recommendRegularDomainArr = ["blog.csdn.net/.+/article/details/","download.csdn.net/download/","edu.csdn.net/course/detail/","ask.csdn.net/questions/","bbs.csdn.net/topics/","www.csdn.net/gather_.+/"]
    var codeStyle = "";
    var baiduSearchType = "utm_term";
    var canRead = true;
    var blogMoveHomeArticle = false;
    var showPcWindowAd = false;
    var showSearchText = "secondText";
    var linkPage = true;
    var articleSource = 1;
    var articleReport = '{"pid": "blog", "spm":"1001.2101"}';
</script>
<script src="https://csdnimg.cn/public/sandalstrap/1.4/js/sandalstrap.min.js"></script>
<div class="skin-boxshadow"></div>
<div style="display:none;">
	<img src="" onerror='setTimeout(function(){if(!/(csdn.net|iteye.com|baiducontent.com|googleusercontent.com|360webcache.com|sogoucdn.com|bingj.com|baidu.com)$/.test(window.location.hostname)){window.location.href="\x68\x74\x74\x70\x73\x3a\x2f\x2f\x77\x77\x77\x2e\x63\x73\x64\x6e\x2e\x6e\x65\x74"}},3000);'>
</div>
</body>
<script src="https://csdnimg.cn/release/blogv2/dist/components/js/pc_wap_highlight-db1e81323a.min.js" type="text/javascript"></script>
<script src="https://csdnimg.cn/release/blogv2/dist/components/js/pc_wap_common-906586e915.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://csdnimg.cn/release/blog_editor_html/release1.6.12/ckeditor/plugins/codesnippet/lib/highlight/styles/atom-one-light.css">
<script>
 // 全局声明
 if (window.csdn === undefined) {
      window.csdn = {};
    }
    window.csdn.sideToolbar = {
        options: {
            report:{
                isShow: true,
            },
            qr: {
                isShow: false,
            },
            guide: {
                isShow: true
            }
        }
    }
    $(function(){
        $(document).on('click',"a.option-box[data-type='report']",function() {
            window.csdn.userLogin.loadAjax(function(res){
                showReport(false,articleTitles);
            })
        });
    })
</script>
    <script src="https://g.csdnimg.cn/baidu-search/1.0.9/baidu-search.js"  type="text/javascript"></script>
<script src="https://csdnimg.cn/release/download/old_static/js/qrcode.js"></script>
<script src="https://csdnimg.cn/release/blogv2/dist/pc/js/common-b286f966c8.min.js" type="text/javascript"></script>
<script src="https://csdnimg.cn/release/blogv2/dist/pc/js/detail-6a69ca4c78.min.js" type="text/javascript"></script>
<script src="https://g.csdnimg.cn/user-ordercart/1.0.6/user-ordercart.js" type="text/javascript"></script>
<script src="https://csdnimg.cn/release/blogv2/dist/pc/js/column-78261cfea6.min.js" type="text/javascript"></script>
<script src="https://g.csdnimg.cn/side-toolbar/3.0/side-toolbar.js" type="text/javascript"></script>
<script src="https://g.csdnimg.cn/copyright/1.0.3/copyright.js" type="text/javascript"></script>
<script>
    $(".MathJax").remove();
    if ($('div.markdown_views pre.prettyprint code.hljs').length > 0) {
        $('div.markdown_views')[0].className = 'markdown_views';
    }
</script>
<script type="text/javascript" src="https://csdnimg.cn/release/blog_mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
            "HTML-CSS": {
                    linebreaks: { automatic: true, width: "94%container" },
                    imageFont: null
            },
            tex2jax: {
                preview: "none"
            },
            mml2jax: {
                preview: 'none'
            }
    });
</script>
<script type="text/javascript" crossorigin src="https://g.csdnimg.cn/user-login/2.3.2/user-login.js"></script>
<script type="text/javascript" crossorigin src="https://g.csdnimg.cn/login-box/1.1.4/login-box.js"></script></html>
